// 工作流 mock 数据

export const workflowMocks = [
    // 标准国际物流订单流程
    {
        id: 'mock-1',
        name: '标准国际物流订单流程',
        createdAt: '2024-06-01T10:00:00Z',
        updatedAt: '2024-06-01T10:00:00Z',
        nodes: [
            { id: 1, name: '开始', type: '系统', x: 100, y: 60 },
            { id: 2, name: '下单', type: '用户操作', x: 100, y: 180 },
            { id: 3, name: '支付成功', type: '用户操作', x: 100, y: 300 },
            { id: 4, name: '通知用户支付成功', type: '系统', x: 350, y: 300, notifyTargets: ['buyer'], notifyMethods: ['system', 'wechat', 'qywx'], remindTemplate: '您的订单已支付成功' },
            { id: 5, name: '通知财务付款复核', type: '系统', x: 600, y: 300, notifyTargets: ['finance'], notifyMethods: ['system', 'qywx'], remindTemplate: '有新订单待付款复核' },
            { id: 6, name: '付款复核', type: '财务', x: 100, y: 420 },
            { id: 7, name: '卖家发货', type: '系统', x: 100, y: 540, description: '系统抓取物流单号' },
            { id: 8, name: '等待商品入库', type: '仓库', x: 100, y: 660 },
            { id: 9, name: '商品开始派送', type: '物流', x: 350, y: 660, notifyTargets: ['warehouse'], notifyMethods: ['system', 'qywx'], remindTemplate: '有商品待入库' },
            { id: 10, name: '商品入库', type: '仓库', x: 100, y: 780 },
            { id: 11, name: '通知买家商品已入库', type: '系统', x: 350, y: 780, notifyTargets: ['buyer'], notifyMethods: ['system', 'wechat'], remindTemplate: '您的商品已入库，可申请国际物流发货' },
            { id: 12, name: '入库超3天提醒', type: '系统', x: 600, y: 780, notifyTargets: ['buyer'], notifyMethods: ['system', 'wechat'], remindTemplate: '您的商品已入库超3天，请尽快申请国际物流发货', condition: '入库天数 >= 3' },
            { id: 13, name: '入库超7天再次提醒', type: '系统', x: 850, y: 780, notifyTargets: ['buyer'], notifyMethods: ['system', 'wechat'], remindTemplate: '您的商品已入库超7天，请尽快申请国际物流发货', condition: '入库天数 >= 7' },
            { id: 14, name: '申请国际物流发货', type: '用户操作', x: 100, y: 900 },
            { id: 15, name: '通知库管打包称重', type: '系统', x: 350, y: 900, notifyTargets: ['warehouse'], notifyMethods: ['system', 'qywx'], remindTemplate: '有商品待打包称重' },
            { id: 16, name: '打包称重', type: '仓库', x: 100, y: 1020 },
            { id: 17, name: '通知用户打包称重结果', type: '系统', x: 350, y: 1020, notifyTargets: ['buyer'], notifyMethods: ['system', 'wechat'], remindTemplate: '您的商品已打包称重，请支付尾款' },
            { id: 18, name: '支付尾款成功', type: '用户操作', x: 100, y: 1140 },
            { id: 19, name: '通知库管发货', type: '系统', x: 350, y: 1140, notifyTargets: ['warehouse'], notifyMethods: ['system', 'qywx'], remindTemplate: '有商品待发货' },
            { id: 20, name: '商品已发货', type: '物流', x: 100, y: 1260 },
            { id: 21, name: '等待国际物流信息', type: '物流', x: 100, y: 1380 },
            { id: 22, name: '用户签收', type: '用户操作', x: 100, y: 1500 },
            { id: 23, name: '通知订单专员及库管', type: '系统', x: 350, y: 1500, notifyTargets: ['admin', 'warehouse'], notifyMethods: ['system', 'qywx'], remindTemplate: '订单已签收' },
            { id: 24, name: '通知用户确认收货', type: '系统', x: 600, y: 1500, notifyTargets: ['buyer'], notifyMethods: ['system', 'wechat'], remindTemplate: '请确认收货' },
            { id: 25, name: '结束', type: '系统', x: 100, y: 1620 }
        ],
        connections: [
            { id: 1, from: 1, to: 2 },
            { id: 2, from: 2, to: 3 },
            { id: 3, from: 3, to: 4 },
            { id: 4, from: 4, to: 5 },
            { id: 5, from: 5, to: 6 },
            { id: 6, from: 6, to: 7 },
            { id: 7, from: 7, to: 8 },
            { id: 8, from: 8, to: 9 },
            { id: 9, from: 9, to: 10 },
            { id: 10, from: 10, to: 11 },
            { id: 11, from: 11, to: 12 },
            { id: 12, from: 12, to: 13 },
            { id: 13, from: 13, to: 14 },
            { id: 14, from: 14, to: 15 },
            { id: 15, from: 15, to: 16 },
            { id: 16, from: 16, to: 17 },
            { id: 17, from: 17, to: 18 },
            { id: 18, from: 18, to: 19 },
            { id: 19, from: 19, to: 20 },
            { id: 20, from: 20, to: 21 },
            { id: 21, from: 21, to: 22 },
            { id: 22, from: 22, to: 23 },
            { id: 23, from: 23, to: 24 },
            { id: 24, from: 24, to: 25 }
        ]
    },
    // 简化国际物流流程
    {
        id: 'mock-2',
        name: '简化国际物流流程',
        createdAt: '2024-06-01T10:10:00Z',
        updatedAt: '2024-06-01T10:10:00Z',
        nodes: [
            { id: 1, name: '开始', type: '系统', x: 100, y: 60 },
            { id: 2, name: '下单', type: '用户操作', x: 100, y: 180 },
            { id: 3, name: '支付成功', type: '用户操作', x: 100, y: 300 },
            { id: 4, name: '付款复核', type: '财务', x: 100, y: 420 },
            { id: 5, name: '卖家发货', type: '系统', x: 100, y: 540 },
            { id: 6, name: '商品入库', type: '仓库', x: 100, y: 660 },
            { id: 7, name: '申请国际物流发货', type: '用户操作', x: 100, y: 780 },
            { id: 8, name: '打包称重', type: '仓库', x: 100, y: 900 },
            { id: 9, name: '支付尾款成功', type: '用户操作', x: 100, y: 1020 },
            { id: 10, name: '商品已发货', type: '物流', x: 100, y: 1140 },
            { id: 11, name: '用户签收', type: '用户操作', x: 100, y: 1260 },
            { id: 12, name: '结束', type: '系统', x: 100, y: 1380 }
        ],
        connections: [
            { id: 1, from: 1, to: 2 },
            { id: 2, from: 2, to: 3 },
            { id: 3, from: 3, to: 4 },
            { id: 4, from: 4, to: 5 },
            { id: 5, from: 5, to: 6 },
            { id: 6, from: 6, to: 7 },
            { id: 7, from: 7, to: 8 },
            { id: 8, from: 8, to: 9 },
            { id: 9, from: 9, to: 10 },
            { id: 10, from: 10, to: 11 },
            { id: 11, from: 11, to: 12 }
        ]
    },
    // 订单支付与通知流程
    {
        id: 'mock-3',
        name: '订单支付与通知流程',
        createdAt: '2024-06-01T10:20:00Z',
        updatedAt: '2024-06-01T10:20:00Z',
        nodes: [
            { id: 1, name: '开始', type: '系统', x: 100, y: 60 },
            { id: 2, name: '下单', type: '用户操作', x: 100, y: 180 },
            { id: 3, name: '支付成功', type: '用户操作', x: 100, y: 300 },
            { id: 4, name: '通知用户支付成功', type: '系统', x: 350, y: 300, notifyTargets: ['buyer'], notifyMethods: ['system', 'wechat', 'qywx'], remindTemplate: '您的订单已支付成功' },
            { id: 5, name: '通知财务付款复核', type: '系统', x: 600, y: 300, notifyTargets: ['finance'], notifyMethods: ['system', 'qywx'], remindTemplate: '有新订单待付款复核' },
            { id: 6, name: '结束', type: '系统', x: 100, y: 420 }
        ],
        connections: [
            { id: 1, from: 1, to: 2 },
            { id: 2, from: 2, to: 3 },
            { id: 3, from: 3, to: 4 },
            { id: 4, from: 4, to: 5 },
            { id: 5, from: 5, to: 6 }
        ]
    }
] 